package com.example.zzh.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 单据主表
 * </p>
 *
 * @author zzh
 * @since 2023-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ZzhDepotHead对象", description="单据主表")
public class ZzhDepotHead implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "类型(出库/入库)")
    private String type;

    @ApiModelProperty(value = "出入库分类")
    private String subType;

    @ApiModelProperty(value = "票据号")
    private String number;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "出入库时间")
    private LocalDateTime operTime;

    @ApiModelProperty(value = "供应商id")
    private Long organId;

    @ApiModelProperty(value = "操作员")
    private Long creator;

    @ApiModelProperty(value = "数量")
    private BigDecimal operNumber;

    @ApiModelProperty(value = "金额(收款/付款)")
    private BigDecimal changeAmount;

    @ApiModelProperty(value = "找零金额")
    private BigDecimal backAmount;

    @ApiModelProperty(value = "付款类型(现金、记账等)")
    private String payType;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "附件名称")
    private String fileName;

    @ApiModelProperty(value = "优惠率")
    private BigDecimal discount;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountMoney;

    @ApiModelProperty(value = "优惠后金额")
    private BigDecimal discountLastMoney;

    @ApiModelProperty(value = "状态，0未审核、1已审核、2完成采购|销售、3部分采购|销售、9审核中")
    private String status;

    @ApiModelProperty(value = "单据来源，0-pc，1-手机")
    private String source;

    @ApiModelProperty(value = "关联订单号")
    private String linkNumber;

    @ApiModelProperty(value = "删除标记，0未删除，1删除")
    private String deleteFlag;

}
